using System;
using System.Collections;
using System.Collections.Generic;
using Me.Prettyprint.Cassandra.Connection;
using Me.Prettyprint.Cassandra.Service;
using Me.Prettyprint.Cassandra.Serializers;
using Me.Prettyprint.Cassandra.Utils;
using Me.Prettyprint.Hector.Api;
using Me.Prettyprint.Hector.Api.Beans;
using Me.Prettyprint.Hector.Api.Query;
using Org.Apache.Cassandra.Thrift;
using Thrift;

namespace Me.Prettyprint.Cassandra.Service.Template
{
    /// <summary>
    /// Holds the result for the contents of a super column. This interface add
    /// access to the current super column similar to {@link ColumnFamilyResult}
    /// </summary>
    /// <typeparam name="K"></typeparam>
    /// <typeparam name="SN"></typeparam>
    /// <typeparam name="N"></typeparam>
    public interface SuperCfResult<K, SN, N> : ColumnFamilyResult<K, N>
	{
        List<SN> SuperColumns
        {
            get;
        }
        Guid GetUUID(SN sColumnName, N columnName);
        string GetString(SN sColumnName, N columnName);
        long GetLong(SN sColumnName, N columnName);
        int GetInteger(SN sColumnName, N columnName);
        bool GetBoolean(SN sColumnName, N columnName);
        float GetFloat(SN sColumnName, N columnName);
        double GetDouble(SN sColumnName, N columnName);
        byte[] GetByteArray(SN sColumnName, N columnName);
        ByteBuffer GetByteBuffer(SN sColumnName, N columnName);
        DateTime GetDate(SN sColumnName, N columnName);
        System.Numerics.BigInteger GetBigInteger(SN sColumnName, N columnName);
        System.Numerics.BigDecimal GetBigDecimal(SN sColumnName, N columnName);
        void ApplySuperColumn(SN sColumnName);
        SN GetActiveSuperColumn();
        /// <summary>
        /// Retrieved named superColumn as an HSuperColumn with sub columns.
        /// Underlying column value is a ByteBuffer.
        /// Note: Correct derialization and treatment is up to the caller.
        /// </summary>
        /// <param name="superColumn"></param>
        /// <returns></returns>
        HSuperColumn<SN, N, byte[]> GetSuperColumn(SN superColumn);
        SuperCfResult<K, SN, N> Next();
	}
}